package com.kmproject.haifu.mvp.ui.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kmproject.haifu.R;
import com.kmproject.haifu.mvp.model.entity.resbean.SelectAddressMapBean;

import java.util.List;

public class SelectAddressMapAdapter extends BaseQuickAdapter<SelectAddressMapBean, BaseViewHolder> {
    public SelectAddressMapAdapter(@Nullable List<SelectAddressMapBean> data) {
        super(R.layout.select_address_content_map_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SelectAddressMapBean item) {
        if (item.getType() == 0) {
            helper.<TextView>getView(R.id.select_address_content_map_item_titile).setText(item.getTitle());
            helper.<TextView>getView(R.id.select_address_content_map_item_content).setText(item.getDetileAddress());
        }
    }
}
